package com.geovis.emergency.spd.entity.basic.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.geovis.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 基础类型
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/6/9
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
public class BaseSpdEntity extends BaseEntity implements Serializable {

    @ApiModelProperty("创建部门")
    @TableField(fill = FieldFill.INSERT,  updateStrategy = FieldStrategy.NEVER)
    private String createDept;

    @TableLogic
    @ApiModelProperty("是否已删除")
    @TableField(fill = FieldFill.INSERT)
    private String isDeleted;
}
